package com.jcl.recruit.console.elastic.logic.service;

import com.jcl.core.common.page.PageResult;
import com.jcl.recruit.console.elastic.logic.ConsoleElasticResumeLogic;
import com.jcl.recruit.elasticsearch.resume.vo.ElasticPageCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName ConsoleElasticService
 * @Author yyliu
 * @Date 2018/12/24 17:06
 * @Version 1.0
 **/
@Service
public class ConsoleElasticService {

    @Autowired
    private ConsoleElasticResumeLogic consoleElasticResumeLogic;

    public PageResult pageList(ElasticPageCondition condition) {

        return consoleElasticResumeLogic.pageResult(condition, condition.getCurPage(), condition.getRowSize());
    }
}
